package com.example.demo.designPattern.observer;

/**
 * @Author: xiatian
 * @CreateTime: 2021/11/5 11:27 上午
 * @Description:
 */
public class EventDemoTest {
    public static void main(String[] args) {
        ImEventListener imeventListener = new ImEventListener();
        MobileEventListener mobileEventListener = new MobileEventListener();
        EmailEventListener emailEventListener = new EmailEventListener();
        EventBusCenter.register(imeventListener);
        EventBusCenter.register(mobileEventListener);
        EventBusCenter.register(emailEventListener);
        EventBusCenter.post(new NotifyEvent("13854381234","123@qq.com","66666"));
    }
}
